home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 September / Enter 09 2006.iso / Internet / SpamExperts Home 1.1 / SpamExperts Home.exe / lib / spamexperts.modules / ZODB / UndoLogCompatible.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-07-14  |  868 b   |  25 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. '''Provide backward compatibility with storages that only have undoLog().'''
  5.  
  6. class UndoLogCompatible:
  7.     
  8.     def undoInfo(self, first = 0, last = -20, specification = None):
  9.         if specification:
  10.             
  11.             def filter(desc, spec = specification.items()):
  12.                 get = desc.get
  13.                 for k, v in spec:
  14.                     if get(k, None) != v:
  15.                         return 0
  16.                         continue
  17.                 
  18.                 return 1
  19.  
  20.         else:
  21.             filter = None
  22.         return self.undoLog(first, last, filter)
  23.  
  24.  
  25.